import 'package:flutter/material.dart';
import 'package:pkg_obz/core/global.dart';

/// Create： Zhang 4/15/21 1:57 PM
/// 描述：显示相关
class Display {
  ///顶部状态栏的高度
  static double get topMargin =>
      MediaQuery.of(Global.globalKey.currentState!.context).padding.top;

  ///获取屏幕宽度
  static double get screenWidth =>
      MediaQuery.of(Global.globalKey.currentState!.context).size.width;

  ///获取屏幕高度
  static double get screenHeight =>
      MediaQuery.of(Global.globalKey.currentState!.context).size.height;
}
